package com.xunk.scene.domain;

import com.xunk.common.core.annotation.Excel;
import com.xunk.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.domain
 * @ClassName: MessageAction
 * @Author: luanzhiwei
 * @Description: 消息动作表实体类
 * @Date: 2021/5/6 11:26
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode
@ToString
@NoArgsConstructor
public class SceneActionMsg extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    private Long id;

    /**
     * 场景id
     */
    @Excel(name = "场景id")
    private Long sceneId;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    @NotBlank(message = "消息内容不能为空", groups = {Add.class, Model.class})
    private String content;

    /**
     * 延时执行时间，分钟
     */
    @Excel(name = "延时执行时间，分钟")
    private Long delay;

    /**
     * 删除标识,0正常1删除
     */
    private String delFlag;


    public interface Add {
        //校验分组，添加
    }

    public interface Model {
        //设置模板
    }
}
